package com.sg.dto.biz.framework.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc AddDeptPositionDto
 * @使用场景
 */
@Data
public class AddDeptPositionDto extends BaseDto implements Serializable {

    /**
     * 就职单位对象实例ID
     */
    @ApiModelProperty("就职单位对象实例ID")
    private String entityId;

    /**
     * 冗余可选职务ID
     */
    @ApiModelProperty("冗余可选职务ID")
    private String positionId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        AddDeptPositionDto that = (AddDeptPositionDto) o;
        return entityId == that.entityId && positionId == that.positionId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), entityId, positionId);
    }


}
   